package com.peacebird.dc.job.mapper.echart;


import com.peacebird.dc.job.model.echart.*;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface EchartDailyMapper {

    public List<SaleFeeModel> selectSaleFeeList(Map<String, Object> params);


    public List<ProductDiscountModel> selectProductDiscount(Map<String, Object> params);


    public List<ProductTypeRateModel> selectProductTypeRate(Map<String, Object> params);


    public List<SeasonSaleRateModel> selectSeasonSaleRate(Map<String, Object> params);

    public List<TaobaoCategoryRateModel> selectTaobaoCategoryRate(Map<String, Object> params);

    public List<TaobaocategoryAvgModel> selectTaobaocategoryAvg(Map<String, Object> params);

    public List<TmallTransRateModel> selectTmallTransRate(Map<String, Object> params);

    public List<TmallTransRateModel> selectTmallBuyTransRate(Map<String, Object> params);


    public List<Map<String, String>> selectDiscountrateTable(Map<String, Object> params);

    public List<Map<String, String>> selectShopGmvSalesTableHead(Map<String, Object> params);

    public List<Map<String, String>> selectShopGmvSalesTable(Map<String, Object> params);

    public List<Map<String, String>> selectShopGmvShopTable(Map<String, Object> params);

    public List<Map<String, String>> selectShopTopAddBuyQtyTable(Map<String, Object> params);

    public List<Map<String, String>> selectDailySaleTrackTable(Map<String, Object> params);

    public List<DailySalesTaskConfigModel> selectConfig();

    public List<DailySalesTaskConfigModel> selectConfigSendEnable();

    public List<DailySalesTaskConfigModel> selectConfigSendDisable();

    public int selectProductDetailCountbyDate(@Param("yesterdaydate") Date yesterdaydate, @Param("brandids") String[] brandids);

    public int selectProductDetailCountbyShopAndDate(@Param("yesterdaydate") Date yesterdaydate, @Param("shopId") String shopId);

    public int selectAlMsgCountbyDateAndType(@Param("nowdate") Date nowdate, @Param("shopid") String shopid);


    public int selectSaleFeeCount(@Param("yesterdaydate") Date yesterdaydate, @Param("shopid") String shopid);

    public int selectProductTypeCount(@Param("yesterdaydate") Date yesterdaydate, @Param("shopid") String shopid);

    public int selectSeasonCount(@Param("yesterdaydate") Date yesterdaydate, @Param("shopid") String shopid);

    public int selectCategoryCount(@Param("yesterdaydate") Date yesterdaydate, @Param("shopid") String shopid);

    public int selectTmallRateCount(@Param("yesterdaydate") Date yesterdaydate, @Param("shopid") String shopid);

    public int selectMarginDiscountCount(@Param("yesterdaydate") Date yesterdaydate, @Param("shopid") String shopid);

    public int selectGmvCount(@Param("yesterdaydate") Date yesterdaydate, @Param("shopid") String shopid);



    public int updateConfigSendEnable(@Param("id") String id);

    public int updateConfigSendDisable(@Param("id") String id);



}
